#pragma once
#include "imgsource.h"


namespace png8crop
{
	class png8source :
		public imgsource
	{
	private:
		png_structp ptr;
		png_infop info;

	public:
		png8source(FILE* src) throw(ex_generic);
		~png8source(void);

	private:
		void load(FILE* src) throw(ex_io, ex_dataformat);
	};
}

